/*
 * Copyright (c) 2011 Ball State University
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package edu.bsu.android.gtv.apps.bconnected.util;

/**
 * Constants used through the application
 * @author Kyle Parker, University Computing Services
 *
 */
public class Constants {	
	// TODO: Replace with Application Guid (optional) - this was used at BSU because the login handler on the .NET side accepted 
	// logins from multiple applications, so this was used to uniquely identify each application.
	public static final String APPLICATION_GUID = "";
	// TODO: Replace the encryption key - this should match the key used in the service handler (in the case of BSU, this was the .NET 
	// application using C#)
	public static final String KEY = "";
    public static final int HTTP_OK = 200;
    public static final String COMPANY = "Ball State University";
    
    public static final String ACTION_LOGOUT = "edu.bsu.android.gtv.apps.bconnected.ACTION_LOGOUT";
    
    public static final int CONTACT_TYPE_WORK = 2;
    public static final int CONTACT_TYPE_HOME = 1;
    public static final int CONTACT_TYPE_MOBILE = 4;

    public static final int DESTINATION_ABOUT_ME = 5;
    public static final int DESTINATION_SCHEDULE = 1;
    public static final int DESTINATION_STUDENT_ORGS = 2;
    public static final int DESTINATION_MY_CONNECTIONS = 4;
    public static final int DESTINATION_MY_HOME = 3;
    
    public static final int DIALOG_LIST = 3;
    public static final int DIALOG_TEXT_ENTRY = 7;
    public static final int DIALOG_YES_NO_LONG_MESSAGE = 2;
    
	public static final String EXTRA_BSU_ID = "bsu_id";
	public static final String EXTRA_CATEGORY_POSITION = "category_position";
	public static final String EXTRA_CLASSMATE_BSUID = "classmate_bsuid";
	public static final String EXTRA_CLASSMATE_POSITION = "classmate_position";
	public static final String EXTRA_COURSE_POSITION = "course_position";
	public static final String EXTRA_COURSE_REF_NUM = "course_ref_num";
	public static final String EXTRA_DESTINATION_FRAGMENT = "destination_fragment";
	public static final String EXTRA_EVENT_ID = "event_id";
	public static final String EXTRA_INSTRUCTOR_POSITION = "instructor_position";
	public static final String EXTRA_LOGIN_STATUS = "login_status";
	public static final String EXTRA_MEMBER_POSITION = "member_position";
	public static final String EXTRA_MEMBER_ROLE = "member_role";
	public static final String EXTRA_PERSON_TYPE_ID = "person_type_id";
	public static final String EXTRA_ORGANIZATION_ID = "organization_id";
	public static final String EXTRA_ORGANIZATION_POSITION = "organization_position";
	public static final String EXTRA_TERM_POSITION = "term_position";

    public static final int LOGIN_STATUS_CANCELLED = 2;
    public static final int LOGIN_STATUS_EXPIRED = 5;
    public static final int LOGIN_STATUS_FAILED = 0;
    public static final int LOGIN_STATUS_LOGIN = 3;
    public static final int LOGIN_STATUS_LOGOUT = 1;
    public static final int LOGIN_STATUS_NOT_LOGGED_IN = 4;

    public static final String PREF_ABOUT_ME_TAB = "last_about_me_tab";
    public static final String PREF_CATEGORY_ID = "last_category_id";
    public static final String PREF_COURSE_TAB = "last_course_tab";
    public static final String PREF_HOUSING_TAB = "last_housing_tab";
    public static final String PREF_MONTH_ID = "last_month_id";
    public static final String PREF_ORGANIZATION_TAB = "last_org_tab";
    public static final String PREF_TERM_ID = "last_term_id";

    public static final String QUERY_PERSON_DIRECTORY_FACULTY = "facultyandstaff";
    public static final String QUERY_PERSON_DIRECTORY_STUDENT = "students";
    
    public static final int QUERY_EVENT_ID = 3;
    public static final int QUERY_EVENT_MONTH_YEAR = 2;
    public static final int QUERY_ORGANIZATION_CATEGORY = 3;
    public static final int QUERY_ORGANIZATION_DEGREE = 1;
    public static final int QUERY_ORGANIZATION_ID = 2;
    public static final int QUERY_ORGANIZATION_MEMBER = 4;
    public static final int QUERY_ORGANIZATION_SHARED = 5;
    public static final int QUERY_PERSON_BSUID = 3;
    public static final int QUERY_TERM_ALL = 1;
    public static final int QUERY_TERM_DESC = 2;
    public static final int QUERY_TERM_CURRENT = 3;

    public static final String QUERYSTRING_BSU_ID = "bsuid=";
    public static final String QUERYSTRING_CATEGORY_ID = "categoryid=";
    public static final String QUERYSTRING_CLASSMATE_BSU_ID = "classmatebsuid=";
    public static final String QUERYSTRING_CRN = "crn=";
    public static final String QUERYSTRING_DIRECTORY = "directory=";
    public static final String QUERYSTRING_EVENT_ID = "eventid=";
    public static final String QUERYSTRING_FLOOR_CODE = "floor=";
    public static final String QUERYSTRING_HALL_CODE = "hall=";
    public static final String QUERYSTRING_LOGIN_GUID = "loginguid=";
    public static final String QUERYSTRING_MEMBER_BSU_ID = "memberbsuid=";
    public static final String QUERYSTRING_MONTH = "month=";
    public static final String QUERYSTRING_ORG_ID = "orgid=";
    public static final String QUERYSTRING_ROOM_ID = "roomid=";
    public static final String QUERYSTRING_QUERY_ID = "qid=";
    public static final String QUERYSTRING_SEARCH_BSU_ID = "searchbsuid=";
    public static final String QUERYSTRING_STUDENT_BSU_ID = "studentbsuid=";
    public static final String QUERYSTRING_TERM = "term=";
    public static final String QUERYSTRING_TERM_ID = "termid=";
    public static final String QUERYSTRING_TERM_NUM = "termnum=";
    public static final String QUERYSTRING_TERM_YEAR = "termyear=";
    public static final String QUERYSTRING_YEAR = "year=";

    public static final int SERVICE_TYPE_ADVISOR = 19;
    public static final int SERVICE_TYPE_CLASSMATE = 1;
    public static final int SERVICE_TYPE_CONTENT = 16;  
    public static final int SERVICE_TYPE_DEGREE = 18;
    public static final int SERVICE_TYPE_EVENT = 10;
    public static final int SERVICE_TYPE_EVENT_INFO = 20;
    public static final int SERVICE_TYPE_HOUSING = 13;
    public static final int SERVICE_TYPE_INSTRUCTOR = 2;
    public static final int SERVICE_TYPE_LOGOUT = 17;  
    public static final int SERVICE_TYPE_MEMBER = 8;
    public static final int SERVICE_TYPE_ORGANIZATION = 7;
    public static final int SERVICE_TYPE_ORGANIZATION_CATEGORY = 9;
    public static final int SERVICE_TYPE_ORGANIZATION_INFO = 21;
    public static final int SERVICE_TYPE_OTHER_COURSES = 12;
    public static final int SERVICE_TYPE_PERSON = 11;
    public static final int SERVICE_TYPE_ROOMMATE = 14;
    public static final int SERVICE_TYPE_SCHEDULE = 3;
    public static final int SERVICE_TYPE_SHARED_COURSE = 4;
    public static final int SERVICE_TYPE_TERM = 5;

    // TODO: Change to use the coordinates and other information applicable to your institution
	public static final String VALUE_GPS_BSU_LATITUDE = "-85.40804";
	public static final String VALUE_GPS_BSU_LONGITUDE = "40.20379";
	public static final String VALUE_NO_DEPARTMENT = "No Department";
	public static final String VALUE_DEMO_ACCOUNT = "bconnected";
	public static final String VALUE_DEMO_BSU_ID = "BALLSTATE";
	public static final String VALUE_DEMO_FIRST_NAME = "Demo";
	
	public static final int VALUE_MEMBER_TYPE_GENERAL = 1;
	public static final int VALUE_MEMBER_TYPE_ELECTED = 2;
	public static final int VALUE_MEMBER_TYPE_ADVISOR = 3;
	public static final int VALUE_PERSON_TYPE_FACULTY = 3;
	public static final int VALUE_PERSON_TYPE_STUDENT = 1;
	public static final int VALUE_PERSON_TYPE_ROOMMATE = 6;
	public static final int VALUE_PERSON_TYPE_FLOORMATE = 2;
	public static final int VALUE_PERSON_TYPE_RA = 4;
	public static final int VALUE_PERSON_TYPE_DIRECTOR = 5;
}